package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CEntChronicleInfoDao;
import gov.ccswj.modules.ccbusiness.entity.CEntChronicleInfoEntity;
import gov.ccswj.modules.ccbusiness.service.CEntChronicleInfoService;



@Service("cEntChronicleInfoService")
public class CEntChronicleInfoServiceImpl implements CEntChronicleInfoService {
	@Autowired
	private CEntChronicleInfoDao cEntChronicleInfoDao;
	
	@Override
	public CEntChronicleInfoEntity queryObject(Integer id){
		return cEntChronicleInfoDao.queryObject(id);
	}
	
	@Override
	public List<CEntChronicleInfoEntity> queryList(Map<String, Object> map){
		return cEntChronicleInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cEntChronicleInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(CEntChronicleInfoEntity cEntChronicleInfo){
		cEntChronicleInfoDao.save(cEntChronicleInfo);
	}
	
	@Override
	public void update(CEntChronicleInfoEntity cEntChronicleInfo){
		cEntChronicleInfoDao.update(cEntChronicleInfo);
	}
	
	@Override
	public void delete(Integer id){
		cEntChronicleInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cEntChronicleInfoDao.deleteBatch(ids);
	}

	@Override
	public List<CEntChronicleInfoEntity> queryListByEntname(String entname) {
		return cEntChronicleInfoDao.queryListByEntname(entname);
	}
	@Override
	public void deleteByname(String entname) {
		cEntChronicleInfoDao.delete(entname);
		
	}
}
